package com.gitee.ywj1352.hungry;

public class Hungry {
    private Hungry(){}
    //先静态 后动态
    //先属性 后方法
    //先上后下
    private static final Hungry HUNGRY = new Hungry();

    public static Hungry getSingleton(){
        return HUNGRY;
    }

}
